package vn.mobisoft.gachno;

import android.app.Application;

public class Global extends Application{
	private String securityCode;
	private String phone;	
	private String log = "";
	
	private String m_id = "";
	
	private GachNoActivity parent;
	/*
	 * MainActivity
	 */
	public void updateMain( GachNoActivity p) {
		parent = p;
	}
	
	public GachNoActivity getMain() {
		return parent;
	}
	/*
	 * code
	 */
	public void updateCode(String code) {
		securityCode = code;
	}
	
	public String getCode() {
		return securityCode;
	}
	//mid
	public void updateMid(String mid) {
		m_id = mid;
	}
	
	public String getMid() {
		return m_id;
	}
	/*
	 * phone
	 */
	public void updatePhone(String p) {
		phone = p;
	}
	
	public String getPhone() {
		return phone;
	}
	/*
	 * log
	 */
	public void appendLog(String s) {
		log += s;
	}
	public void updateLog(String s) {
		log = s;
	}
	public String getLog() {
		return log;
	}
}
